Updated to fix encoding problems.

It now does the check on submission.id instead of the permalink. The id cannot contain any non-ASCII characters.