fixed catching rfc charset
deleted max(n,n)