In work i needet some function that made php string to hex and hungarian specialchars too.