Fix _resolve_model to work with unicode strings
Merge pull request #1596 from pipermerriam/piper/suport_unicode_model_references

`_resolve_model` should work with unicode strings