Preventing directory traversal.