Give a better error message when passing a text type to hashpw