Fixed encode() compatibility issue