realm should be encoded