changed scanning for charset rfc again