Fix error location reporting
WIP for the new readChar