Bug fixes

- Fix some major bugs that causes to server crash.
- Implement passing message as just string instead of object if user locale is not impornant.
the error handler at the beginning of this function prevents a string so this wouldn't work.