Minor improvement to charsetReader