URL encode relationship types to account for URL chars in type names.

Closes #132