Byte.toUnsignedInt doesn't exist in Java 7.