fixed some bugs.
change input field text -> password
add config to detect system encoding