Fix escaping in thumbnail regexp.