Fallback to memory API when failed to deocde filename