No need to define encoding options in two methods