Change string decoding and encoding to replace invalid characters.
Switch back to string_decoder from Node source, which handles partial
UTF-8 in a way that preserves non-standard characters just like
regular Node.
Add a test for ISO-8859-1 string decoding.