Do compiled templates (in templates_c) contain URL data, or get corrupted?
To answer the last part, yes you can safely delete the contents of /sites/default/files/civicrm/templates_c/.  That is a recommended step in the upgrade process