Fix ctrl characters handling