#FeatureRequest:1522, sanitize file name

#Modification:
1. file name sanitized before being added as attribute
2. attr converted to `data-*` nomenclature
Signed-off-by: A V Minhaz <minhazav@gmail.com>