Fix #831: Set Character.MAX_VALUE to correct value