Modify the encoding of crypted_password.

ref #1121
I changed encoding to avoid activerecord [conditional expression](https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L266).