Make reg031 char-sign-indifferent.

The test `reg031` failed with the Java backend because Java uses unsigned chars.

The test has been made char-sign-agnostic.