Improved model referencing

Allow ._/\ as valid characters in a model reference.