Print warnings when used ? with characters with escape codes

Closes #2640