Get rid of preg_replace with 'e' modifier, use preg_replace_callback instead (see bug #20068)