Allow spaces in badge names

Some ppl will name their badges like "badge 1.dds" which currently causes issues with the mod.

Also my last fix was not as good as it should have been. Sry for that, cleaned up the mess now,