make http_uri_encode_component() return a null-terminated string
avoid unnecessary copies when encoding uri components