Avoid bytes vs. str error in Python3

Closes #375

Signed-off-by: Dan Scott <dan@coffeecode.net>