use BytesIO on Python3 to test WSGIRequest
fixed formatting in travis config
fixed another encoding test