Change unnamed namespace in utils.h to namespace detail

Unnamed namespace used in utils.h seems to have no effect because it is in a header file.