factor common char encoding into main Target; version set to 4.4

Also, `^` is XOR in Java, so this method is equivalent to `return 29;`.