[BUGFIX] fixed url encoding process + fixed JSON parsing of custom fields