Removes toString for encoding