Revert "Do not escape passwords when hashing."

This reverts commit e419d650fdb22fa651c4477970a455e90918993d.