What you're getting is the right answer. That's the UTF-8 hex value for the attribute. What you seem to expect is the UTF16 value but it's just the same thing expressed in a different way.
iconv can be used to convert between UTF-8 and UTF-16 so if you iconv the result and then pass that into bin2hex you should be able to get the UTF-16 value as a string.