Fixed problems when the default charset is not able to represent the byte stream.