Fix tests for charset_re