Remove NULL characters from buffer streams