Fix error when password is not in English

Tested password in Chinese, it works.