Fix passing non-latin uri's to actions.

Fixes #459