(eg similar to ensure_ascii)