fixed invalid characters