A custom reader used when decoding TOML file.
Reads a single character and returns its code, or returns -1 if EOF is met.