Fix lurking bug in edit_permissions

I don't have a test case, this is just code review; that string extrapolation will always raise.
Merge pull request #28 from gthb/patch-1

Fix lurking bug in edit_permissions