Fix createExtendedErrorReply() was converting errors to string incorrectly