- attribute save_keyconfig defaulted to True when unset, not sure why, but . - use repr() rather then str() so strings are quoted without manually checking. also converts less common chars properly \m \" etc.