Let config be passed + encoding
Have a mock config object, along with monkeypatching utils
Tweak require