Improve delete character handling
Merge pull request #127 from preynal/master

Improve handling of the delete character.