Make encoding an option