+ val = val.replace(new RegExp("\u0000", 'g'), "\ufffd") # fixfull spec doesn't say this
+ val = val.replace(new RegExp("\r\n", 'g'), "\n") # fixfull spec doesn't say this
+ val = val.replace(new RegExp("\r", 'g'), "\n") # fixfull spec doesn't say this