show() characters faithfully even if they are invalid
print/write invalid characters as the replacement character
fixes #1988