« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: htmlentities() [function.htmlentities]: Invalid multibyte sequence in argument 
  Error type/ Nr.: Warning - 2 
  File: /sata1/home/users/hafizsidd1/www/www.hafizsiddiq.com/assets/snippets/maxigallery/chunkie/phx.parser.class.inc.php 
  Line: 261 
  Line 261 source: case "htmlent": $output = htmlentities($output,ENT_QUOTES,$modx->config['etomite_charset']); break;  
 
Parser timing
  MySQL: 1.2251 s(20 Requests)
  PHP: 0.5901 s 
  Total: 1.8152 s