Added encoding to modules.