replace entities with their literals