Initialize URI before attempting to parse query parameters from it