use the slugified version of the code for validation

now they'll get a validation error instead of a 500 when editing, and they can update it:

![image](https://f.cloud.github.com/assets/66555/1285152/d8fa6394-2fa2-11e3-8793-3715c37dfb15.png)