Remove trailing slashes on REST URIs