Updated to fix encoding problems.

Changed the check to submission.id, which cannot contain any non-ASCII characters. Another way to fix this would be to replace link with link_en where link_en = link.encode('ascii', 'replace')