Fix redefinition of encodestring