Fixes #4819 replace preg replace with /e preg replace callback

uses `create_function` to support both PHP 5.2 and PHP 5.5
`create_function` uses `eval` internally so probably it's
better to have this fix only for Kohana v.3.2

Thank you @Zeelot for the help