Refuse to encode invalid Unicode characters in UTF-8