just some little fixes

1) junit.framework replaced with org.junit
2) additional string range check in handling escape sequence