Replace PCRE /e modifier with preg_replace_callback()

Replaced usage of preg_replace with "/e" modifier with
  preg_replace_callback() using a closure