added the necessary else statement in the encoder get arbitrary files
function