support underscore for url

The change is based one: 
https://bugs.ruby-lang.org/issues/8241