Update TemporaryFolder.newFolder() to give a better error message if a path contains a slash

Please review the fix and let me know if it does good.
Thanks for the explanation. I realize the @throws is indeed not necessary. I have removed the throws as suggested by @stefanbirkner .