afanasy: render: parsing: output maximum size middle trunctaion and invalid characters bugfix