support for encodings in require
2.1.3