Fixed entities not converting back in PHP <5.4