fix for possible null byte in input sequence
fix for possible null byte in input sequence

roryk/transrate,roryk/transrate,Blahah/transrate,cboursnell/transrate,Blahah/transrate,Blahah/transrate,cboursnell/transrate,cboursnell/transrate,roryk/transrate