it is safe to assume SOAP_TEMPLATE is charset UTF_8 (you did that above in the error decoder).  It is not a good idea to make a string without declaring one at all.