added wierd character writing functions