Do unicode migration for rbtools/hooks/

This change updates the code in the rbtools/hooks/ directory to have a correct
separation of unicode vs bytes, and use unicode literals everywhere.

Testing done:
Ran unit tests.

Reviewed at https://reviews.reviewboard.org/r/6696/