Fixing `hypermedia()` URI reconstruction by encoding the query string values, added a test