Windows: Remove trailing spaces in directory names

Additionally, strip trailing spaces for VA report IDs for good measure

Here's another Windows compatibility fix. If we had a trailing space in a report ID, Windows would strip that when creating the directory, but not when we tried to create a file in the directory, which led to an exception.