#22 Convert encoding function added.