Ensure correct encoding is used for 'rake build'