fix permissions

(cherry picked from commit 7cc259ea467744ab20875fe106c3a816efb9dd8a)
reporting: for windows filenames escape underscore

(cherry picked from commit 85905cbb1d8c43e80b677de2dfffeea7d28761f7)
reporting: fix figure inclusion for windows

(cherry picked from commit 99f4a01a48bf9bd834f82c9fad18f70f6869e302)
reporting: fix typo

(cherry picked from commit 3990707e364652a1dabe7a7c88a8bacf3b803e50)