preg_replace_callback is a LOT faster than strtr.