Non-blocking readCharacter() implemented.