Added a maxlength argument to encode_filename