uri encode before parse

wrap `uri` by `URI.encode` before `URI.parse` to enable to use `^` character like in `^GSPC`.