Fixes CS-4637; Fixes encoding in upgrade scripts
Merge pull request #263 from terwey/CS-4637

Fixes CS-4637; Fixes encoding in upgrade scripts