Adds encoding headers to module files