s/\\x(\w\w)/chr hex $1/ge [download]
In reply to Re^3: Converting string literal represetation of utf to utf8 by moritz in thread Converting string literal represetation of utf to utf8 by djihed