[jan] Fix detecting bad PGP signatures on some systems with non-English locales (Bug #10273).