Escaping defaultvalue for string before writing it for generated code.