Fix invalid character if data cointains unbreakable space as entity.