Adding example for using file encoder