revert previous commit, perform uri decoding in categories.js instead