Hi Krikor,
You pointed me in the right direction. I think I found it.
First including the route.php:
require_once(JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'route.php');
Using this line:
<a href="'.urldecode(JRoute::_(K2HelperRoute::getCategoryRoute($row->id.':'.urlencode($row->alias)))).'">'.$row->name.'</a>
and replacing $row->id, $row->alias and $row->name with my own retrieved variables did it.
So, thank you again!
Aram