Fix #582 - Escape binary strings in output error message