There is no need to always convert a QByteArray to a QString. Instead, check the zone Id is accepted first.