Resolved pre-use of filename variable.
fixed my preemptive encoding change that wasn't needed.