--- gallerix.module	Fri Oct 30 10:05:19 2009
+++ gallerix.module	Fri Oct 30 10:04:26 2009
@@ -1592,6 +1592,7 @@
  */
 function gallerix_to_js($data) {
   //This delimiter is crucial, otherwise modules like devel will break JSON parsing.
+  drupal_set_header('Content-Type: text/javascript; charset=utf-8');
   return '##BEGIN_JSON##' . drupal_to_js($data) . '##END_JSON##';
 }
 
