[Windows] Fixed saving files endings with space.