Encode target parameter as string