Allow unicode arguments to passwd_check on Python 2

Closes #4524