Changing unicode characters to their corresponding hex codes