memstream_readc() can return -1 as well as unsigned char values!