ark encoding