fix(compile_uri_template): accept unicode literals

In Python 2 with `from __future__ import unicode_literals`, any URI template strings will be of type `unicode`, not `str`.