Calendar and character encodings

Added a calendar to be able to switch dates.
Also fixed issues dealing with character sets not coinciding in the
browser, PHP and MySQL database. All set to use UTF8.