fix ampersand handling

fixes #114