use the uri parser so that newer version of Ruby work