Fixing #157 - preg_replace() with /e modifier under PHP 5.5 is deprecate...

Replaced preg_replace() with /e modifier with a callback to do the same thing. Unit test passes on PHP 5.4 - depending on Travis to see if it passes for other versions.