amf to string function for debugging