Convert hostnames to lower case before cloaking.

Also, add <cloak:compat> to disable this behaviour. Fixes #480.