Added escape characters for repository class name

Fixed issue: https://github.com/flack/createphp/issues/65

This will change the createphp_attributes output to something like:
xmlns:schema="http://schema.org/" typeof="schema:Page" about="Acme-DemoBundle-Entity-Page|id=1"

And added the unescape for getBySubject class name.