Added protection against path traversal exploit