Make error message detection locale proof; should help tests pass