Handle filename with % or # inside