Fixed tstReplaceLast test (#580)
Fixed other unicode errors in the IO tests (#580)