Restrict path length

this makes sure we can't enter more characters than we can save