Working around a problem with preg_replace /e on newer versions of Kohana...