Modifying serial to handle special terminator characters