fixed byte length header
added explicit utf8s encoding on readFile and toString and fixed broken cleaned whitespace in production environment