trim .msg from classname

in hydro, importing message class fails if classname includes ".msg".