fix exception type for bad char
add info of readSize for Zlib