fixes #408 - Apostrophes in profile names are bad.