Fix database query
Merge branch 'utf8mac_handling_debug' of https://github.com/nicolas-raoul/CmisSync into utf8mac_handling_debug