Added test to cover the reason preg_replace is used in entity_decode