Replace invalid bytes in exception message with '?'