Small cleanup in utils directory.

Changed strings to const references.
Removed unneeded string copies.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>