that should do quite nicely it worked for me as well
here is the code to but it in string
set computer_name to do shell script "grep APPLETALK_HOSTNAME /etc/hostconfig | cut -d '=' -f 2"
set computer_name to hex_to_string((text 2 thru -2 of computer_name) as string)
on hex_to_string(this_string)
set return_string to ""
repeat with i from 1 to length of this_string by 252
try
set return_string to return_string & (run script "«data cstr" & (text i thru (i + 251) of this_string) & "00» as string")
on error
set return_string to return_string & (run script "«data cstr" & text i thru -1 of this_string & "00» as string")
end try
end repeat
return return_string
end hex_to_string