Fixed bug that involving the character encoding.