RF: separate header preamble and string encoding from NpyHeader