Correction on sharing feature when user IDs may have leading zeroes

We were facing a serious issue on sharing feature because our identifiers may be prefixed by zeroes.
Our user IDs, CPF (see http://pt.wikipedia.org/wiki/Cpf) - similar to ISS in US, have the possibility to start with "0". In those cases unsharing or modifying a shared resource caused a failure.

The root cause is that, according to jQuery, data() function tries to convert the value into a number, ripping out leading zeroes. See:
http://stackoverflow.com/questions/7962464/jquery-data-attribute-removes-leading-zeros

Therefore, the correction to this issue consisted in replacing
  data("name")
by
  attr("data-name")

So far we found this issue on sharing feature. However, it may appear somewhere else in ownCloud sourcecode - core and modules.