Fix bugs in Code object and add tests
Add failing test
Remove double-encoding
Standardize behavior of quote_xml and quote_attrib in bindings
Remove double-encoding of Unicode-formatted fields

Fix #194.