do not use assert_raise with Java exception - still there's issues
us-ascii coding to avoid failure in 2.0 mode