This function takes the following parameters:
Name of resource to be canonicalized.
Pointer to location where the canonicalized string will be placed.
The value returned should be freed using free().