nice inference in Data.Text.Encoding