Fix server error when my_user contains garbage.
Merge pull request #16 from vole/api-support-for-is-my-user

Fix server error when my_user contains garbage.
Merge branch 'master' into user-save

* master:
  Fix server error when my_user contains garbage.
Small code cleanup.