Fixed character encofing bug