Convert annotation to text if it isn't already; python's re module expec...

...ts real str objects.