Issue #98: Fixed an error caused by changed string handling in PHP 5.4 and later. Found fix at https://drupal.org/node/1414412