Do unicode migration for rbtools/api/

This change updates the code in the rbtools/api/ 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/6686/