Port fix for handling start and stop characters