Fix encoding conversion for utf-18.