Replace NULL characters in head()/csv() escaping functions