fix rawurlencode to not encode slashes