Strip illegal characters from member roles in AMF uploads, part 2

Fixes #758