fixed weird character output issue on iPad