Properly force bytes or str for bcrypt on Python3