Properly encode user name to bytes in dummy test resource (affects version of Twisted on travis-ci and seems the sensible thing to do).