Added encoding so we can at least see the filename without the invalid bytes.