Take an as-file-able thing and return a string if it is a relative path, else IllegalArgumentException.