Merge faster encode/decode implementation from @Steve132