unexport TypeMap and fix typo in debug string
use io.ReadFull instead of custom readBytes
Don't do any attempt at charset handling here (the existing one was wrong).

For now we'll just assume that all strings are utf8-compatible