Contacts: Backport sanitizing paths and blacklist check.
Contacts: Try to fail gracefully on import error.