I introduced the method to state the intend of the workaround. Giving it a second thought, I'd opt for a method that performs the file test and applies the encoding.

Anyway, I'm fine with inlining it.