MAGMA-203 - throw parse exception when invalid characters found