fix cropping non-latin buffer names