[[ Bugfix 12545 ]] Fix I/O for serial devices