fmtstream: fixed refill, added getchar, readcc stub