Make API resource path construction more robust.
Merge pull request #11 from SURFnet/bugfix/api-resource-path-construction

Make API resource path construction more robust