Fix titles with invalid characters