Sanitize paths before query

We sanitize paths to valid FAT characters before database insert, if
we don't sanitize paths before queries, queries will fail, leading to
FileNotFoundException when we try to open a hidden file we created.
This caused chrome downloads to fail because they were trying to
download files in the form of .com.google.Chrome.XXXX

Test: Chrome downloads work
Bug: 147741933
Change-Id: I5e3dce7376042fff9d6faed5a9e1986996000361
1 file changed