moved url encoding effort to process_content.js, introduces new bugs