Prevent Windows Paths from causing issues.

Serializes `dep.id` from containing incompatible unserialized Windows paths.