Fix delete characters producing empty spaces in the web interface.

The character code in CP437 for the delete character is 127. This is not a
printable character so the terminal interface produced gaps when it attempted
to render them. This commit replaces delete characters with unicode code point
0xFFFD character (placeholder for unknown or invalid characters).