usrloc: fix crash when no attr were used (NULL pointer was dereferenced)
mi_http: escape special characters