Fixed encoding errors in expand.StaticModule when system default encoding doesn't match expectations for source files.