improved dbcs & box drawing handling