Text this: Preparation and reconstruction of arbitrary path and polarization states in photons