Instead of overriding the `encode` method here, I'd do a check in the `encode` method like:

```coffeescript
if @isAFM
  @_encodeWinAnsi text
else
  # current encode method
```