Do not accept str objects in Python 3.

As documented, update() method and key, salt, person arguments for
constructors take bytes, not strings.