Fixed some edge cases with buffering the files in the proc filesystem and parsing out null bytes