decode the name so the tests will pass

Looks like you were right. I really don't understand the unicode thing, and don't get why we need to encode and decode here, but jinja fails otherwise.