make FileUtils extendable

Corresponding issue is #9513.