Doschk is a program that checks filenames for compatibility with 14-character SYSV filenames and (optionally) DOS 8.3 filenames. See ftp://ftp.gnu.org/pub/gnu/doschk-1.1.tar.gz.