rawurlencode instead of urlencode

otherwise spaces aren't handled correctly