fixed #264

Also support the `encoder` param of the highlight option