Fixed incorrect encoding parsing regexp