Redmine#4913: file_hash function
only assume ID if entire string is numeric
Merge pull request #1756 from garywall/str2uidgid_fix

only assume ID if entire string is numeric
Merge pull request #1618 from tzz/redmine4913-file_hash

Redmine#4913: file_hash function