Fixed urlencoding of accepted contenttype to the API