fix java.nio.charset.MalformedInputException