silently swallows directory traversal attempts and turns subclasses into subdirectories