ruby/string#percent_encode: encode a string with percent-encoding