fix a pair of possible out of array char references When serializing char references back to an character string Reported by Abhishek Arya <inferno@chromium.org>