replace # into _hash_ when need to make folder

when query includes #(hash), os doesn't allow the folder name including
hash (#) so that change it to _hash_