Fix one byte access in r_str_uri_encode