Possible fix for some extras having wrong path names
(for example: URL as path or NUL bytes in path)