Fix deprecated preg_replace /e.

Fix #8 as contributed by @williamespindola