Changed preg_replace() with 'e' modifier to preg_replace_callback() (fixes #136)