Improve error message when ascii.read guessing fails

Prompted by #2945.

@eteq @hamogu @astrofrog @amras1