Lets say we have a user who wants a file named: "test/lasdhjal.txt", whatever. Now if I put this into a new File(input); object inside, it will think that test/ is a folder, whilst it's a part of the name. What can I do against that?
No, the limitation of not allowing a "/" in a file name is imposed at the kernel level, this is not something you can get around.