Set response encoding
Resolve require path properly