non-latin CPT rewrite slugs fail `wp_safe_redirect`
|Reported by:||entr||Owned by:|
|Component:||Posts, Post Types||Keywords:||needs-patch|
If you localize your custom post type rewrite slugs in non-latin language and pass it to wp_safe_redirect it will strip all non-latin characters and attempt to redirect to stripped location.
This can be easely reproduced if your custom post type supports comments and you submit a comment from post type single page as wp_safe_redirect is called after comment submission.