Allow tags to specify their own encoder