re-add encoding
fixed some minor bugs
…
thats not right
get reading in order
parse incoming arraybuffer data to Buffer