3.2/bugfix/make html anchor strict compliant

http://dev.kohanaframework.org/issues/3916

We should delete this in 3.4