BUG: encoding detection should accept variations on 'ascii' GH3360

PTF