fix that Single-byte encoding conversion doesn't work on Linux