clip docName to 50 chars, otherwise idnits complains