if content type is passed through the url, replace spaces with plusses. Fixes #1