Replace longs with ints and complete conversion classes. (Java chars are
UTF-16, so an int can hold two of them. Much easier to deal with.)