Fixed request path canonization method.

To handle scope requests like:
$site = $api->Api('?fields=id,user_id');