encoded: encode.url.slashes "http://foo bar/" print encoded