Ensures model ids are always strings

Fixes #179