Used different encoder (instead of preg_replace)