Fixed checkstyle errors and file encoding