test encoding of request URI