Ensure file system operations on paths to be compatible with Microsoft Windows systems

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony-cmf/MediaBundle/issues/11
| License       | MIT
| Doc PR        | na