Data encoding library