corrected wrong argument name for the encoding