Use mogrify to prevent injection.

Fixes #7.