current carmen api expects to be able to pass a getter that returns nothing
fix handling of encoding option allowing it to be passed as undefined and ignored