Fix unicode errors when getting static files (fixes #1034)

Fixes two issues with non-ascii paths:
 - the "root" of the static handler must be unicode, otherwise unicode
   strings will be mixed with non-ascii byte strings leading to
   exceptions

 - work around tornados rather naive implementation of tornados
   validate_absolute_path