* Calculate the byte length of a string (accounting for UTF-8).
*
* @static
+ * @inheritable
+ * @param {string} str
+ * @return {string}
*/
jQuery.byteLength = function ( str ) {
// This basically figures out how many bytes a UTF-16 string (which is what js sees)