Fix some security issues

Yeah, you cant do ../ or / anymore. Sorry hackers.