add a filter to handle the encoding.