Add method for encoding uri, stripping whitespace from it, and returning necessary info. Also add console_base_url to spec test config file, so tests will pass