Add default charset to render_javascript_catalog

While doing a site scan with skipfish I found that responses from javascript_catalog were missing the charset. Clearly this has been harmless so far but let's try fixing it up anyway.

Please note this patch has (sadly) not been tested - it might not even compile... Hopefully I've followed your style guidelines but apologies if not.