PHP 5.5 support

Fixed preg_replace calls with /e modifier.
Merge pull request #212 from javer/patch-php55

PHP 5.5 support