Improve filename regex.