A bit of tweaking to see if I can work around encode.