Fix: encode URI components in REST API
Merge pull request #1566 from dennishendriksen/master

Fix: encode URI components in REST API